@extends('common.layouts.base')

@section('body')
<?php
$showSidebar = (!empty($__env->yieldContent('side')) || !empty($__env->yieldContent('help')));
?>
<body id="shell" class="{{ str_replace('.', ' ', Route::currentRouteName()) }}">
	<div class="ui celled wrapper grid">
		<div class="main row">
			<div class="four wide shell column">
				@include('common.include/navigation')
			</div>
			<div class="{{ $showSidebar ? 'eight' : 'twelve' }} wide main column">
				<div class="eleven wide column" id="content">
					<header>
						<h1>
							@yield('title', ucfirst(Route::currentRouteName()))
						</h1>
					</header>
					
					@if(!empty($__env->yieldContent('actions')))
					<div class="item right aligned action buttons">
						@yield('actions')
					</div>
					@endif
					
					@yield('content')
				</div>
			</div>
			@if($showSidebar)
			<div class="four wide column" id="side">
				@if(!empty($__env->yieldContent('side')))
				<div class="item sidebar">
					@yield('side')
				</div>
				@endif
				@if(!empty($__env->yieldContent('help')))
				<div class="item help screen">
					<a class="ui fluid icon button">
						<i class="ui help icon"></i> help
					</a>
					<div class="content" title="Help">
						@yield('help')
					</div>
				</div>
				@endif
			</div>
			@endif
		</div>
		<div class="footer row">
			@include('common.include/footer')
		</div>
	</div>
</body>
@stop